package com.gg.controller;

import java.util.HashMap;
import java.util.Map;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestRestController {
	
	Logger logger = LoggerFactory.getLogger(TestRestController.class);

	/*
	 * @Value("${spring.application.name}") private String applicationName;
	 * 
	 * @Value("${eureka.client.service-url.defaultZone}") private String
	 * eurekaServers;
	 */

	@Value("${server.port}")
	private String port;
	@RequestMapping("/info")
	public Map<String, String> ymlInfo() {
		
		logger.info("client  into");
		logger = LoggerFactory.getLogger(String.class);
		logger.info("clientgth222  into");
		Map<String, String> map = new HashMap<String, String>();
		map.put("port", port);
		//map.put("eurekaServers", eurekaServers);
		//map.put("applicationName", applicationName);
		return map;
	}
}
